/**
  *代码下载模板
  *已在模板中使用,勿轻易修改
**/
.ax__template {
	height: 100%;
	overflow: hidden;

	.data__content {
		flex: 1;
		overflow-y: auto;
		margin-top: 8px;
		height: 100%;
	}
	/* 避免出现滚动条 */
	&::-webkit-scrollbar {
		display: none;
	}

	$width: 200px;
	.table_card_list {
		display: grid;
		gap: 8px;
		overflow-y: auto;
		overflow-x: hidden;
		place-content: start;
		flex: 1;
		grid-template-columns: repeat(auto-fill, minmax($width, 1fr));
		div.active {
			$wh: 20px;
			position: absolute;
			right: 4px;
			top: 4px;
			z-index: 10;
			background: var(--primary);
			color: white;
			width: $wh;
			height: $wh;
			line-height: $wh;
			text-align: center;
			border-radius: 50%;
		}
	}
}
/* 固定在顶部,已在模板中使用,勿轻易修改 */
.ax_sticky_top {
	position: sticky;
	top: 0;
	z-index: 10;
}
.ax_plain_card {
	border-radius: 0 !important;
	box-shadow: none !important;
	border: none;
}

/* 表单的指示针 */
.ax__indicate {
	box-shadow: -2px 0 0 var(--primary);
}
.ax__dynamic__form {
	/* 动态表单相关 */
	.ax_form_item_creation {
		$wh: 64px;
		height: $wh;
		width: $wh;
		display: flex;
		place-content: center;
		place-items: center;
		border: 1px solid var(--border-color);
		border-radius: var(--radius);
		position: relative;
		cursor: pointer;
		flex-shrink: 0;
		z-index: 0;
		&:hover {
			background: var(--hover-bg);
			.item-close {
				opacity: 1;
			}
		}
	}
	.create {
		position: sticky;
		right: 0;
		z-index: 10;
	}
	.form-item-active {
		background: var(--active-bg) !important;
		.item-close {
			opacity: 1;
		}
	}
	.item-index {
		line-height: 20px;
		display: flex;
	}
	.item-close {
		position: absolute;
		top: -8px;
		right: -8px;
		text-align: center;
		opacity: 0;
		padding: 0;
		color: #ff7777;
		text-align: center;
		width: 16px;
		height: 16px;
		line-height: 16px;
		border-radius: 50%;
		background-color: #3f3f3f10;
		border: 0.0625rem solid #ff8b8b71;
		z-index: 10;
		display: flex;
		place-items: center;
		place-content: center;
	}
}
